            <form name="fcategory" method="get" style="margin:0px;">
            <? if ($is_category) { ?>
<table cellpadding=7 cellspacing=0 width=100%  style="position:relative; border:1px solid #e4e4e4">
<tr>
<td>
<link rel="stylesheet" type="text/css" href="../include/cate_tab.css" />
<div id="navcontainer"><ul id="navlist">
<li><? if (!$sca){?><a id=current href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'><b><font color=#ffffff>전체</font></b>
<font color=#dddddd>(<?
$total=sql_fetch("select  sum(bo_count_write ) as cnt from $g4[board_table] where bo_table IN('$bo_table')");
echo "$total[cnt]";
?>)</font>
<?}else{?>
<a href='./board.php?bo_table=<?=$bo_table?>&page=<?=$page?>'>전체
<font color=#888888>(<?
$total=sql_fetch("select  sum(bo_count_write ) as cnt from $g4[board_table] where bo_table IN('$bo_table')");
echo "$total[cnt]";
?>)</font>
<?}?>
</a></li><? if ($is_category) { ?> 
<?  
$cnt = 1;
$cnt0 = 0;
$bb_s=""; $bb_e="";
$arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
        $str = "";
        $str .= "";
$f_open="id=current";
$f_close="";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i]))  {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name = '$arr[$i]' and wr_is_comment = 0 ";
$row1 = sql_fetch($sql1);
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b style='color: white;'>";$cc=$f_open; $b_e="</b>"; } else {$b_s=""; $cc=$f_close; $b_e="";}
if ($sca == $arr[$i]) {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#dddddd></font></a></li>"; }
else {
$str .= "<li><a $cc href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "'>$b_s$arr[$i]$b_e <font color=#888888></font></a></li>"; } 
$cnt++;
}
if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
?>
<?=$str?>
<? } ?>
</ul></div>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr><td height='11' colspan="2"></td></tr>
</table>
            <? } ?>
            </form>